package com.example;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@RestController
@RequestMapping("/springboot")
public class HelloController {
        
        @RequestMapping(value = "/{name}", method = RequestMethod.GET)
        @ApiOperation(notes="test",value="测试")
        public String sayWorld(@PathVariable("name")  @ApiParam String name) {
            return "Hello " + name;
        }
}
